import request from '@/utils/request'

// 查询开票列表
export function listEaInvoiceApplication(query) {
  return request({
    url: '/admin-api/invoice/application/list',
    method: 'get',
    params: query
  })
}

// 查询开票详细
export function getEaInvoiceApplication(id) {
  return request({
    url: '/admin-api/invoice/application/' + id,
    method: 'get'
  })
}

// 线下开票-确认开票
export function offlineInvoice(data) {
  return request({
    url: '/admin-api/invoice/application/offlineInvoice',
    method: 'put',
    data: data
  })
}



// 开票申请详情
export function eaInvoiceApplicationDetail(params) {
  return request({
    url: '/admin-api/invoice/applicationDetail/list/' + params.applicationId,
    method: 'get',
    params
  })
}

// 开票申请详情详细
export function getEaInvoiceApplicationDetail(id) {
  return request({
    url: '/admin-api/invoice/applicationDetail/' + id,
    method: 'get'
  })
}
